expectPATCH
( service in module ngMock
)
Creates a new request expectation for PATCH requests. For more info see expect()
.
url – {string|RegExp} –
HTTP url.
data(optional) – {(string|RegExp)=} –
HTTP request body.
headers(optional) – {Object=} –
HTTP headers.
{requestHandler}
– Returns an object with respond
method that control how a matched
request is handled.